﻿@model TelerikConnect.Web.ViewModels.MessageSendViewModel

@{
    ViewBag.Title = Model.Title;
}
<div class="content-wrapper">
    <h2>View</h2>

    <h2>Message from @Model.RecieverUserName</h2>
    <h3>Title: @Model.Title</h3>
    <h3>Content:</h3>
    <p>
        @Model.Content
    </p>
    <span id="reply-button" class="k-button">Reply</span>
</div>
<script>
    $("#reply-button").click(function () {
        var data = '<iframe frameborder = "0" width="480" height="350" src="/Messages/Send/' + '@Model.RecieverUserName' + '" ></iframe>';
        var kendoWindow = $("#window").data("kendoWindow");
        kendoWindow.content(data);

        kendoWindow.center();
        kendoWindow.open();
    });
</script>
